package store

import "errors"

var(
	ErrBookNotFound = errors.New("book not found")
	ErrBookExisted = errors.New("book existed")
)

type Book struct {
	ID    string
	Name  string
	Authors []string
	Press string
}

type Store interface {
	Create(* Book) error
    Update(* Book) error
	Delete(id string) error
	Get(id string) (* Book, error)
	GetAll() ([]* Book, error)
}
